home *** CD-ROM | disk | FTP | other *** search
- { demonstration program for removable window package }
-
- {$i windows.inc}
-
- var i : integer;
-
- begin
- initwin;
- writeln('Now and every time the action stops,');
- writeln('Press ENTER to continue.');
- readln;
- for i := 1 to 20 do writeln(' This is the original screen.');
-
- textcolor(7); textbackground(1);
- mkwin(3,3,50,18);
- for i := 1 to 5 do writeln('This is the first window...');
- readln;
-
- textcolor(0); textbackground(3);
- mkwin(10,5,70,20);
- for i := 1 to 5 do writeln('Second window...');
- readln;
-
- textcolor(0); textbackground(5);
- mkwin(15,15,45,23);
- writeln('Third window...');
- readln;
-
- textcolor(0); textbackground(7);
- mkwin(55,10,79,25);
- writeln('Fourth window...');
- readln;
-
- rmwin; { remove fourth window }
- readln;
-
- textcolor(0); textbackground(3);
- rmwin; { remove third window }
- writeln;
- writeln('We are back in the second window...');
- readln;
-
- textcolor(7); textbackground(1);
- rmwin; { remove third window }
- writeln;
- writeln('This is the first window again!');
- readln;
-
- textcolor(7); textbackground(0);
- rmwin; { remove first window }
- readln;
-
-
- end.